<?php

namespace app\company\controller;

use app\company\validate\DeliverCarValidate;
use app\service\traits\Crud;
use app\company\model\DeliverCar as DeliverCarModel;

class DeliverCar extends Base
{
    private DeliverCarModel $model;

    use Crud;

    public function initialize()
    {
        parent::initialize();
        $this->model            = new DeliverCarModel();
        $this->validateClass    = DeliverCarValidate::class;
        $this->withSearch       = 'id,no,type';
        $this->isGs             = true;
        $this->append           = 'car_type_text,car_length_text';
        $this->checkUniqueField = ['no'];
    }

}